package ${sourceBasePackage}.dao<#if sourceIncludeModule == 'Y'>.${moduleName}</#if>;

import com.jxdinfo.hussar.support.mp.base.mapper.HussarMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import ${sourceBasePackage}.dto<#if sourceIncludeModule == 'Y'>.${moduleName}</#if>.${entityName}DTO;
import ${sourceBasePackage}.dto<#if sourceIncludeModule == 'Y'>.${moduleName}</#if>.${entityName}SearchDTO;
import ${sourceBasePackage}.model<#if sourceIncludeModule == 'Y'>.${moduleName}</#if>.${entityName};
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;

/**
 * ${description}Mapper接口
 *
 * @author ${author}
 * @since ${createDate}
 */
@Mapper
@Repository("${entityName}Mapper")
public interface ${entityName}Mapper extends HussarMapper<${entityName}> {

	/**
	 * 条件查询
	 * @param pager
	 * @param ${entityName?uncap_first}SearchDTO
	 * @return
	 */
	List<${entityName}DTO> listByPage(Page<${entityName}DTO> pager, @Param("${entityName?uncap_first}SearchDTO") ${entityName}SearchDTO ${entityName?uncap_first}SearchDTO);

	/**
	 * 通过id查询
	 * @param ${pkPropertyName}
	 * @return
	 */
	${entityName}DTO getById(@Param("${pkPropertyName}") ${pkPropertyType} ${pkPropertyName});

}
